package com.bruce.Common;

import com.bruce.bean.Teacher;

public enum Resultcode {
    System_success(200,"成功"),
    Add_succ(200,"添加成功"),
    Find_err(201,"查询出错"),
    Select_Error(202,"选择出错"),
    Select_OverLaod(203,"重复选课"),
    Select_no(204,"没有选择课"),
    Add_Error(300,"添加错误"),
    Delect_err(301,"删除错误"),
    Update_err(302,"更新错误"),
    Teacher_ovload(501,"该课程有老师教授");

    int code;
    String mess;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMess() {
        return mess;
    }

    public void setMess(String mess) {
        this.mess = mess;
    }

    Resultcode(int code, String mess) {
        this.code = code;
        this.mess = mess;
    }
}
